package net.ermannofranco.genericdaojdbc.clause;

public abstract class OneClause extends Clause {

	private String propName;

	public abstract String getDiscriminator();

	public abstract boolean requiresNamedParam();

	public abstract Object getValue();

	public final String getPropName() {
		return propName;
	}

	protected OneClause(String propName) {
		if (propName == null || propName.length() == 0)
			throw new IllegalArgumentException("nome proprieta' nullo!!!");
		this.propName = propName;
	}

	@Override
	public Clause[] getInnerClauses() {
		return new Clause[] { this };
	}
}
